﻿<UserControl x:Class="FXSStation.Modules.ChartModule.BuyOrderWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="300" Width="300" x:Name="control">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="3*" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>

            <TextBlock Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" FontWeight="bold">Make Buy Order</TextBlock>

            <TextBlock Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="16" FontWeight="bold">Current Price</TextBlock>
            <TextBlock Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="16" FontWeight="bold" 
                       Foreground="Blue" Text="{Binding DataContext, ElementName=control}"/>

            <TextBlock Grid.Row="2" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="18" Text="Amount" FontWeight="bold"/>
            <TextBox Grid.Row="2" Grid.Column="1" HorizontalAlignment="Stretch" Margin="20" x:Name="tbAmount" Text="0" HorizontalContentAlignment="Right"/>

        </Grid>
        <StackPanel Orientation="Horizontal" Grid.Row="1">
            <Button Width="100" Height="30" Margin="20" Click="Button_Click" IsDefault="True">Buy Order</Button>
            <Button Width="100" Height="30" Margin="20" Click="Button_Click_1">Cancel</Button>
        </StackPanel>
    </Grid>

</UserControl>
